#include "mythread.h"

mythread::mythread(QObject *parent) : QThread(parent)
{
}

void mythread::setinfo_beforestart(QStringList videofilelist, QString outpath, QTime cuttime, QTime onevideotime, QStringList audiolist, QString zimufile, QString titie, QString logo, bool addaudio, bool addzimu)
{
    this->videofilelist=videofilelist;
    this->outpath=outpath;
    this->cuttime=cuttime;
    this->onevideotime=onevideotime;
    this->audiolist=audiolist;
    this->zimufile=zimufile;
    this->titie=titie;
    this->logo=logo;
    this->addaudio=addaudio;
    this->addzimu=addzimu;
}

void mythread::run()
{
    The_video_clip video_clip;
    connect(&video_clip,&The_video_clip::signal_infoout,this,&mythread::slot_sending);

    video_clip.function( videofilelist, outpath, cuttime,  onevideotime, audiolist, zimufile,  titie, logo, addaudio, addzimu);

}

void mythread::slot_sending(QString str, QString pro)
{
    emit signal_info(str,pro);

}
